<div class="row">
	<div class="panel callout"><h6>Class Attendance</h6></div>
		<?php echo validation_errors(); ?>
		<?if(isset($system_message)) echo $system_message;?>
			<?require 'navigation/class_nav.php'?>
			<?if(!empty($now_att)):?>
			<table>
				<thead>
					<tr>
						<th>Date</th>
						<th>Day</th>
						<th>Actions</th>
					</tr>
				</thead>
				<tbody>
					
						<?foreach($now_att as $att):?>
							<tr>
								<td><?=date('F d, Y', strtotime($att->att_date)); ?></td>
								<td><?=date('l', strtotime($att->att_date)); ?></td>
								<td>
									<ul class="button-group">
										<li><a href="<?=site_url(array('teacher','view_edit_attendance',$att->room_id,$att->att_date));?>" class="button small radius">View/Edit</a></li>
										<li><a href="<?=site_url(array('teacher','delete_attendance',$att->room_id,$att->att_date));?>" class="button small alert confirm_btns">Delete</a></li>
									</ul>
								</td>
							</tr>
						<?endforeach;?>
					
				</tbody>
			</table>
			<?else:?>
				<div class="panel"><h6>No recorded attendance. <a href="<?=site_url(array('teacher','new_attendance',$room_id))?>">Create one now.</a></h6></div>
			<?endif;?>
</div>